public class Employee {
    private String name;
    private String empId;

    public Employee(String name, String empId) {
        this.name = name;
        this.empId = empId;
    }

    public double calculateSalary() {
        return 0.0;
    }

    public String generatePaySlip() {
        return String.format("=== 工资条 ===\n工号：%s\n姓名：%s\n员工类型：%s\n应发薪资：%.2f 元\n=============",
                empId, name, getClass().getSimpleName(), calculateSalary());
    }

    public String getName() { return name; }
    public String getEmpId() { return empId; }
}